package filenametool;

import java.io.File;
import java.io.IOException;

public class Qtf_Main {

	public static void main(String[] args) {

		File src = new File("D:\\Temp");
		File out = new File(src.getAbsolutePath() + "_qtf/");
		out.mkdirs();

		File[] files = src.listFiles();

		for (File f : files) {
			if (f.isFile() && f.getName().endsWith(".mp4")) {
				String command = "qtf.exe \"" + f.getAbsolutePath() + "\" \"" + out.getAbsolutePath() + "/" + f.getName() + "\"";
				try {
					Process exec = Runtime.getRuntime().exec(command);

					System.out.println(exec.toString());
				} catch (IOException e) {
					e.printStackTrace();
				}
			}
		}
	}
}
